/**
 * 
 */
package simpleFactory;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

import org.junit.Test;



/**
 * @author sz
 *
 * create time：2012-7-31
 */

public class testMain {

	@Test	
	public void abc(){
		
				
Operation oper = OperationFactory.createOperation("/");
		
		double a = 0;
		double b = 0;
		
		System.out.println("输入数字A");
		
		Scanner sc = new Scanner(System.in);
		
		a = sc.nextDouble();
		
		System.out.println("输入数字B");
		
		b = sc.nextDouble();
		
		oper.setNumberA(a);
		
		oper.setNumberB(b);
		
		System.out.println(oper.GetResult());
		


	}
}
